/**
 * Created by IntelliJ IDEA.
 * User: Liu Yuhong
 * Date: 12-10-25
 * Time: 下午5:05
 * Subpage tender page functions.
 */

$(function() {
   
    var menuGroups = [
        {
            'menuId': "tenderMenu",
            'menuTitle': getLanMsg("0ec22400-000061"),
            'iconImg': null,
            'needShow': bModuleARAPOrSCM_PU,
            'items': [               
                {
                    'itemId': "tenderMenuItem1",                  
                    "itemUrl": "/ebvp/other/invoiceList?menuid=54",
                    'itemName': getLanMsg("0ec22400-000062"),
            		'needShow': bModuleSCM_PU,
                    'callback': function() {window.location = "/ebvp/other/invoiceList?menuid=54"; return false;}                        
                },
                {
                    'itemId': "tenderMenuItem2",                  
                    "itemUrl": "/ebvp/other/paymentList?menuid=55",
                    'itemName': getLanMsg("0ec22400-000063"),
            		'needShow': bModuleARAP && bStdVersion,
                    'callback': function() {window.location = "/ebvp/other/paymentList?menuid=55";  return false;}
                    
                }
                
            ]
        }
    ];

    /* 左侧菜单栏 */
    $( "#columnLeft" ).UIColumnMenu({
        'menuGroups': menuGroups,
        'menuHeight': heigth,
        'singleGroup': true
    });
    
    $(function() {	
    	if(i==1){
			$( "#tenderMenuItem1" ).parents("ul").find(".current").removeClass("current");
			$( "#tenderMenuItem1" ).addClass("current");
    	}
    	if(i==2){
    		$( "#tenderMenuItem2" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem2" ).addClass("current");
    	}
	 });

});
